'''
Created on 20.12.2012

@author: felix
'''
from game.player.alpha_beta_player.alpha_beta_framework.heuristic.Heuristic import Heuristic
from game import GameLogic
class FourWithFreedom(Heuristic):
    def heuristic(self, field, action, color, nextColor, depth):
        return GameLogic.getMaxLenFromPoint(field, action, 4, GameLogic.WIN_LENGTH) is not None